/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@text-popup-prefix-cls: ~'@{css-prefix}text-popup';

.@{text-popup-prefix-cls} {
  .inject-TextPopup-vars();

  display: inline-block;

  &.show-auto-width {
    width: 100%;
  }

  .area {
    font-size: var(--tv-TextPopup-font-size);
    font-family: var(--tv-TextPopup-font-family);
    padding: 5px 12px;
    width: 100%;
    border-radius: var(--tv-TextPopup-border-radius, 2px);
    outline: none;
    box-sizing: border-box;
    background-color: var(--tv-TextPopup-bg-color);
    color: var(--tv-TextPopup-text-color);
  }

  .text {
    border: 1px solid var(--tv-TextPopup-border-color);
    line-height: 1;
    height: var(--tv-TextPopup-height);
    background-color: var(--tv-TextPopup-bg-color);
    color: var(--tv-TextPopup-text-color);

    &:hover {
      border-color: var(--tv-TextPopup-hover-border-color);
    }
  }

  .popup {
    resize: none;
    box-shadow: var(--tv-TextPopup-box-shadow);
    border: 1px solid var(--tv-TextPopup-focus-border-color);
  }
}
